Sheffield | 26-Jan-ITP | Karim Mhamdi | Sprint 1 | Coursework/sprint-1#1092
Sheffield | 26-Jan-ITP | Karim Mhamdi | Sprint 1 | Coursework/sprint-1#1092KKtech06 wants to merge 3 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sprint-1/1-key-exercises/3-paths.js
Outdated
| const dir = ; | ||
| const ext = ; | ||
| const dir = filePath.slice(0, lastSlashIndex); | ||
| const ext = filePath.slice(filePath.lastIndexOf(".")) ; |
There was a problem hiding this comment.
Code is correct.
On line 21, there are some trailing space characters.
Trailing spaces do not affect program execution, but they can influence how Git detects changes in a file.
If you enabled "Format on save" in VSCode, and you have installed "prettier" extension, VSCode can automatically indent the code and remove all trailing space characters.
There was a problem hiding this comment.
You didn't remove the extra trailing space.
Have you follow the recommended setup described in https://github.com/KKtech06/Module-Structuring-and-Testing-Data/blob/main/readme.md?
| // 4. Takes everything except the last 2 digits as pounds. | ||
| // 5. Prints the result in this format: £3.99 |
There was a problem hiding this comment.
(4) and (5) does not quite describe the code on lines 14-16.
Also, could we expect this program to work as intended for any valid penceString if we deleted .padEnd(2, "0") from the code?
In other words, do we really need .padEnd(2, "0") in this script?
There was a problem hiding this comment.
#1092 (comment)
This comment was not yet addressed.
cjyuan
left a comment
There was a problem hiding this comment.
Most changes look good, but you may have missed some of my comments.
Also, it would help me tracked the changes if you can reply directly in each of the inline comments.
Sprint-1/1-key-exercises/3-paths.js
Outdated
| const dir = ; | ||
| const ext = ; | ||
| const dir = filePath.slice(0, lastSlashIndex); | ||
| const ext = filePath.slice(filePath.lastIndexOf(".")) ; |
There was a problem hiding this comment.
You didn't remove the extra trailing space.
Have you follow the recommended setup described in https://github.com/KKtech06/Module-Structuring-and-Testing-Data/blob/main/readme.md?
| // 4. Takes everything except the last 2 digits as pounds. | ||
| // 5. Prints the result in this format: £3.99 |
There was a problem hiding this comment.
#1092 (comment)
This comment was not yet addressed.
|
Changes are good! Well done! |
Learners, PR Template
Self checklist
Changelist: Improved comments and explanations following review feedback.
I have completed all the tasks for the Sprint-1 and i have created a branch Coursework/Sprint1
Questions
N/A